home *** CD-ROM | disk | FTP | other *** search
- From: henk@cs.vu.nl (Henk Smit)
- Newsgroups: alt.security
- Subject: Netgroup troubles (was: Re: Unresponsiveness of .....)
- Message-ID: <10728@star.cs.vu.nl>
- Date: 22 Aug 91 22:28:23 GMT
- References: <1991Aug21.151548.11339@nntp.hut.fi> <scs.682808164@wotan.iti.org>
-
- scs@iti.org (Steve Simmons) writes:
-
- >......... We also supplied a fix that would let yp-based systems
- >still have interoperation within their domains, but close off
- >systems outside that domain. It's easy -- create a netgroup
- >consisting of all hosts in the domain (it's a one-liner -- something
- >like
- > localdomain (,,`domainname`)
- >and then put
- > +@localdomain
- >into the hosts.equiv file. I dunno how this would react with the
- >DNS stuff, but it was pretty good as of '86.
-
-
- From the manpage for netgroup(5) in SunOS4.1.1:
-
-
- NETGROUP(5) FILE FORMATS NETGROUP(5)
- ........
- The domainname field must either be the local domain name or
- empty for the netgroup entry to be used. This field does
- not limit the netgroup or provide security. The domainname
- field refers to the domain in which the triple is valid, not
- the domain containing the trusted host.
-
- ........
- WARNINGS
- The triple, (,,domain), allows all users and machines
- trusted access, and has the same effect as the triple, (,,).
-
- To correctly restrict access to a specific set of members,
- use the hostname and username fields of the triple.
-
-
-
- So, obviously your solution does not work (anymore).
- The scary thing is, it used to work in SunOS4.0.3. We found out about the
- change only a couple of weeks after upgrading to SunOS4.1.1. The whole
- Internet was able to mount our filesytems without us knowing, because
- the (,,cs.vu.nl) netgroup in our /etc/exports did not work anymore.
-
- Another problem is that the data field in a dbm entry can only be 1024
- characters long. So if you have a lot of machines, you can't just put
- all your machines in one netgroup. If the line exceeds 1024 characters
- (the blocksize, see dbm(3), BUGS section), something goes wrong. Now your
- netgroup is equivalent with (,,) again !
-
- I have seen some sites which think they protect their filesystems by
- using netgroups, but in fact, their filesystems are world mountable !
- I guess there are much more sites like this then you would expect.
-
-
- The problem in my eyes is not the bad mechanism itself, but the change
- of mechanism (syntax) without proper warning. You think that you have set
- up some security, and then all of a sudden, after an ugrade, your setup
- is worthless without you knowing it.
- Though these (important) changes are in the man pages, I can't recall
- seeing anything about it in the release notes.
-
-
- Henk.
-
- --
- Henk Smit Vrije Universiteit Amsterdam
- Internet: henk@cs.vu.nl Faculteit Informatica kamer S4.10
- Phone: +31 20 548 6218
-
-